package com.lottery.dao.qiuqiu.bettingDao;


import com.lottery.dto.ResultDto;
import com.lottery.entity.AccountTransaction;
import com.lottery.entity.BettingLimitation;
import com.lottery.entity.Bettinginfo;

public interface BettingLimitationDao {
	
	/**
	 * 查询投注最大和最小值
	 * @param user
	 * @return
	 */
	public BettingLimitation selectMaxMinBet();
	/**
	 * 根据用户ID修改最大和最小投注金额
	 * @param userId
	 * @param MaxBet
	 * @param MinBet
	 */
	public void updateMaxMinBet(BettingLimitation bettingController);
	
	/**
	 * 增加用户所设投注最大和最小值
	 * @param bettingController
	 */
	public void insertMaxMinBet(BettingLimitation bettingController);
	
	
	/**
	 *投注之前首先查询accountTransaction表的投注总金额
	 */
	/*public AccountTransaction selectSumAccountTransaction(AccountTransaction accountTransaction);*/
	/**
	 * 获取投注流水总金额
	 * @param bettinglimitation
	 * @return
	 */
	public AccountTransaction getTotalAccountTransaction(AccountTransaction accountTransaction);
	
	public ResultDto<Bettinginfo> MaxMinBetAffirm(Bettinginfo bettinginfo);
	
	
	
	
}
